<template>
	<view class="wrap wrap-home">
		<view  v-if="flag" class="title">
			<image class="logo" :src="logo" mode="widthFix"></image>
			<view class="desc">
				为您打造极致美学的桌面
			</view>
		</view>

	</view>
</template>
<script>
	export default {
		
		
		props: {
			flag: {
				type: Boolean,
				required: true
			},
			logo: {
				type: String,

			}
			// title: {
			// 	type: String,
			// 	required: true
			// }
		},
		data() {
			return {
				title:'',
				src: '',
				show: false,
			};
		},
		onLoad() {
		
		},
		computed: {
			avatarUrl() {
				var url = this.vuex_config.baseUrl + this.vuex_user.avatar || '/static/aidex/tabbar/my_2.png';
				url = this.replaceAll(url,'\\','/');
				return url + '?t=' + new Date().getTime();
			}
		},
		methods: {
			showPersonalInfo() {
				this.show = true
			},
			navTo(url) {
				uni.navigateTo({
					url: url
				});
			}
		}
	};
</script>
<style scoped lang="scss">
	.title{
		display: flex;
		align-items: center;
		margin: 24rpx 0;
		.logo{
			width: 130rpx;
			height: 62rpx;
			margin-left: 32rpx;
		}
		.desc{
			font-size: 26rpx;
			font-family: PingFang SC-Light, PingFang SC;
			font-weight: 300;
			color: #FFFFFF;
			margin-left: 13rpx;
		}
	}
	
	.slot-wrap {
		display: flex;
		align-items: center;
		/* 如果您想让slot内容占满整个导航栏的宽度 */
		/* flex: 1; */
		/* 如果您想让slot内容与导航栏左右有空隙 */
		/* padding: 0 30rpx; */
	}

	


</style>
